TAPE Test Code Adaptation Plug-in for Eclipse

نویسندگان

  • Lehmia Kiran
  • Fakhar Lodhi
  • Wafa Basit
چکیده

Refactoring improves the design of software and makes it easier to maintain by eliminating code smells. As manual refactoring is often error-prone and time-consuming, automated refactoring is considered a better choice. Refactoring tools are available in almost all major object oriented programming languages like java, C++, C# etc and provide varying degree of automation. The problem with these tools is that they do not support adaptation of unit tests of the refactored code resulting in invalid unit tests. Unit tests are the only safety net available to developers to verify the system behavior after refactoring. Once these tests get broken there is no way to describe whether the system preserved its behavior or not. In this paper we provide technical details of TAPE (Test code Adaptation Plug-in for Eclipse). This tool not only automates a few commonly used refactorings but also supports adaptation of unit tests affected by the refactoring process. Using this tool the developers can concentrate more on code development activities instead of resolving consistency issues between code and unit tests. Keywords-Refactoring; Unit testing; Adaptation, maintenance

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

An Eclipse plug-in for Test-to-Code Traceability Recovery

Developers write and maintain unit tests continually in order to reflect changes in the production code and maintain an effective regression test suite. In addition, during refactoring developers must ensure that all unit tests continue to pass, so unit tests often need to be refactored together with the source code. Traceability links between application code and respective unit tests are extr...

متن کامل

Erase and rewind - Learning by replaying examples

Much of human learning is built on observing, retaining, and replicating behavior witnessed in a model. On this basis, instructors often teach informatics by providing programming examples to be observed and analyzed by learners. By retaining and replicating the steps leading to the final artifacts, students learn. However, professors usually illustrate an example program only once and provide ...

متن کامل

A Semi-Automatic Approach for Test Case Traceability in a Test-Driver Development

Test-first strategy and code refactoring are both important features in Extreme Programming methodology. In the test-first strategy, test cases are designed before system implementation. If we want to improve certain non-functional attributes of the programs which are revised by refactoring, the original test cases may be broken or inefficient for testing the new programs. In this paper, we pro...

متن کامل

Object Based Dynamic Model Extraction

We describe the outline of a method to retrieve a model from various program runs of object-oriented software which can then be used to find bugs in the program, re-design or refactor it, test the program against the model, perform regression testing and check if new code violates the model. When completed, the model extraction and testing will be implemented as an Eclipse plug-in and the progr...

متن کامل

PDVer, a Tool to Verify PDDL Planning Domains

We present a methodology and a tool for the problem of testing and verifying that a PDDL planning domain satisfies a set of requirements, a need that arises for instance in space missions. We first review and analyse coverage conditions for requirement-based testing, and present how test cases can be derived automatically from requirements. Additionally, we show how test cases can be translated...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2011